4D Chart v13

CT SET CHART LINE ATTRIBUTES

Home

 
4D Chart v13
CT SET CHART LINE ATTRIBUTES

CT SET CHART LINE ATTRIBUTES 


 

CT SET CHART LINE ATTRIBUTES ( area ; object ; partType ; partSpecifics ; pattern ; color ; lineWidth ) 
Parameter Type   Description
area  Longint in 4D Chart area
object  Longint in Object ID
partType  Integer in Type of object for which to get attributes
partSpecifics  Longint in Specific part of object for which to get attributes
pattern  Integer in Pattern number (1 to 36) -1 = No change
color  Longint in Color value -1 = No change
lineWidth  Real in Line thickness in points (>= 0) -1 = No change

The CT SET CHART LINE ATTRIBUTES command sets the attributes of the line specified by area, object, partType, and partSpecifics.

partType and partSpecifics specify the exact part of the graph for which to get the attributes. The codes for these parameters are listed in the section Parameter Codes.

pattern is an integer from 1 to 36 that specifies one of the patterns available on the Pattern palette. Codes for this parameter are listed in the section Parameter Codes.

color is a long integer that specifies the color of the object. You can specify a value for the color parameter by using the CT Index to color or the CT RGB to color functions. For more information about these functions, refer to the commands in the CT Utilities theme.

lineWidth is the thickness of the line, measured in points.

Note: To set the attributes of lines added to the document using the Line tool or the CT Draw line function, use the commands in the CT Objects theme.

Example  

This example changes the plot rectangle’s line attributes for the chart specified by $ChartID. The color is changed to green, the line width is set to 3 points, and the pattern is set to solid.

 CT SET CHART LINE ATTRIBUTES(Area;$ChartID;1;0;3;CT Index to color(10);3)

 
PROPERTIES 

Product: 4D Chart
Theme: CT Chart
Number: 14534

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT GET CHART LINE ATTRIBUTES